/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.base.service.impl;

import com.xy.biz.base.domain.dto.RegionDTO;
import com.xy.biz.base.domain.query.RegionQuery;
import com.xy.biz.base.manager.RegionManager;
import com.xy.biz.base.service.RegionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collection;
import java.util.List;

/**
 *
 *
 * @author zsp
 * @date 2020-8-26
 */
@Service
public class RegionServiceImpl implements RegionService {

    @Autowired
    private RegionManager regionManager;

    @Override
    public List<RegionDTO> listRegion(RegionQuery query) {
        return regionManager.listRegion(query);
    }

    /**
     * 查找多个
     *
     * @param collection 查找条件
     */
    @Override
    public List<RegionDTO> listRegionById(Collection<Long> collection) {
        return regionManager.listRegionById(collection);
    }

}
